﻿// *----------------------------------------------------------------
// Copyright (C) 2017 通通优品
// 版权所有。
// 
// 类名：TestModuleFinder.cs
// 功能描述：TongTongMall.TestBase
// 
// Create User：jym 2017/02/09
// 
// Edit User：UserName,EditTime
// Describe：Describe
// ----------------------------------------------------------------*/
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using TongTongMall.Collections;
using TongTongMall.Common;
using TongTongMall.Dapper;
using TongTongMall.MallWeb.ApiRepository;
using TongTongMall.MallWeb.Application;
using TongTongMall.MallWeb.Core;
using TongTongMall.MallWeb.DapperFramework;
using TongTongMall.Modules;
using TongTongMall.Quartz;
using TongTongMall.RabbitMq;
using TongTongMall.Redis.Cache;

namespace TongTongMall.TestBase.TestBase.Modules
{
    public class TestModuleFinder : IModuleFinder
    {
        public ITypeList<BaseModule> Modules { get; private set; }

        public TestModuleFinder()
        {
            Modules = new TypeList<BaseModule>();
        }

        public ICollection<Type> FindAll()
        {
            Modules.Add<TestBaseModule>();
            Modules.Add<DapperModule>();
            Modules.Add<RabbitMqModule>();
            Modules.Add<MallWebApplicationModule>();
            Modules.Add<MallWebCoreModule>();
            Modules.Add<ApiRepositoryModule>();
            Modules.Add<CommonModule>();
            Modules.Add<QuartzModule>();
            Modules.Add<RedisCacheModule>();
            Modules.Add<DapperFrameworkModule>();
            //Modules.Add<CommonModule>();
            return Modules;
        }

        public Type[] Find(Func<Type, bool> predicate)
        {
            return null;
        }

    }
}
